{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<form method="post" action="" name="listForm">
<!-- start ad position list -->
<div class="list-div" id="listDiv">
{/if}
<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
  <tr>
    <th>病症名称</th>
    <th>分类</th>
    <th>简述</th>
    <th>{$lang.is_show}</th>
    <th>{$lang.sort_order}</th>
    <th>{$lang.handler}</th>
  </tr>
  {foreach from=$list item=li}
  <tr align="center">
    <td>{$li.name}</td>
    <td width="10%">{$li.cat_name}</td>
    <td>{$li.description|truncate:100:"……"} </td>
    <td width="10%"><img src="images/{if $li.is_show eq '1'}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'promote_toggle_is_show', {$li.promote_id})" /></td>
    <td width="10%" align="right"><span onclick="listTable.edit(this, 'promote_edit_sort_order', {$li.promote_id})">{$li.sort_order}</span></td>
    <td width="24%" align="center">
      <a href="category.php?act=promote_edit&amp;id={$li.promote_id}">{$lang.edit}</a> |
      <a href="javascript:void(0);" onclick="listTable.remove({$li.promote_id}, '{$lang.drop_confirm}','promote_remove')" title="{$lang.remove}">{$lang.remove}</a>
    </td>
  </tr>
  {foreachelse}
    <tr><td class="no-records" colspan="6">{$lang.no_records}</td></tr>
  {/foreach}
</table>
<table cellpadding="4" cellspacing="0">
    <tr>
      <td align="right">{include file="page.htm"}</td>
    </tr>
  </table>
{if $full_page}
</div>
</form>

<script language="JavaScript">
listTable.recordCount = {$record_count};
listTable.pageCount = {$page_count};
listTable.query = "promote_query";

{foreach from=$filter item=item key=key}
listTable.filter.{$key} = '{$item}';
{/foreach}
{literal}
onload = function()
{
  // 开始检查订单
  startCheckOrder();
}

{/literal}
</script>


{include file="pagefooter.htm"}
{/if}